package com.swu.pad.course.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.swu.pad.course.entity.Group;

public interface GroupDao extends JpaRepository<Group, String> {

	public List<Group> findGroupByCourseId(String courseId);

	public List<Group> findGroupByCourseIdAndGroupType(String courseId, String groupType);
	public List<Group> findGroupByCourseIdAndGroupTypeOrderByGroupNumAsc(String courseId, String groupType);

	public Group findByCourseIdAndGroupTypeAndGroupNum(String courseId, String groupType, String groupNum);
	
	public Group findById(String groupId);
	
	
	public Group findByGroupNumAndGroupTypeAndCourseId(String gnum,String gtype,String CourseId);
	
	
	
}
